package br.com.locadora.dao.impl;

import javax.persistence.EntityManager;

import br.com.locadora.dao.ClienteDao;
import br.com.locadora.entities.Cliente;
import br.com.locadora.util.Util;

public class ClienteDaoImpl implements ClienteDao {

	public void salvar(Cliente cliente) {
		Util util = new Util();
		EntityManager entityManager = util.getEntityManager();
		entityManager.getTransaction().begin();
		entityManager.persist(cliente);
		entityManager.getTransaction().commit();

	}

}
